#ifndef __RT_UTILS__
#define __RT_UTILS__

struct periodic_task {
        struct timespec r;
        int period;
};

struct periodic_task *start_periodic_timer(uint64_t offs, int t);
void wait_next_activation(struct periodic_task *t);
int make_rt(void);
void set_next_interarrival(struct periodic_task *t, int p);

#ifdef CBS
int sched_set(uint32_t q, uint32_t t);
#else
#define sched_set(...)
#endif
#endif
